package com.ccit.service;
import com.ccit.domain.Approval;
import com.ccit.domain.PageBean;
import com.ccit.domain.Punch;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

@Transactional
public interface ApprovalService {

    public boolean add(Approval approval);

    public boolean addPunch(Punch punch);

    public boolean update(Approval approval);

    public boolean update(Punch punch);

    public boolean delete(Integer id);

    /**
     * 查询
     * @return
     */
    public List<Approval> selectAll();

    /**
     * 按id查询
     * @param id
     * @return
     */
    public List<Approval> getById(Integer id);

    public List<Punch> getPunchById(Integer id);


    /**
     * 分页查询
     *
     * @param currentPage 当前页码
     * @param pageSize    每页展示条数
     * @return
     */
    PageBean<Approval> selectByPage(int currentPage, int pageSize);

    PageBean<Punch> selectByPunchPage(int currentPage, int pageSize);

    List<Approval> selectByDate(String startDate,String endDate);








}
